# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: execute.py
# Time: 19:06

from common.element.elements import PocoElement
from pages.general.handler import GenearalHandler


class GeneralBiz():
    def __init__(self, poco, log):
        self.__log = log
        self.__poco = PocoElement(poco, log)
        self.handler = GenearalHandler(poco, log)

    def click_update_alt(self):
        self.__poco.click_on_the_element(self.handler.get_gengxintanchaung())


if __name__ == '__main__':
    from common.util.log_util import GenerateLog
    from poco.drivers.android.uiautomation import AndroidUiautomationPoco

    poco = AndroidUiautomationPoco(use_airtest_input=True,
                                   screenshot_each_action=False)
    GeneralBiz(poco, GenerateLog().logger()).click_update_alt()
